from django import forms


class GetContentForm(forms.Form):
    content_id = forms.IntegerField(required=False)
    content_type = forms.IntegerField(required=False)
    author_name_contains = forms.CharField(required=False)
    author_id = forms.IntegerField(required=False)
    title_contains = forms.CharField(required=False)
    text_contains = forms.CharField(required=False)
    brief_introduction_contains = forms.CharField(required=False)
    content_contains = forms.CharField(required=False)


class CreateContentForm(forms.Form):
    content_type = forms.IntegerField()
    title = forms.CharField()
    brief_introduction = forms.CharField()
    cover = forms.CharField()
    content_text = forms.CharField()


class EditContentForm(forms.Form):
    content_id = forms.IntegerField()
    content_type = forms.IntegerField()
    title = forms.CharField()
    brief_introduction = forms.CharField()
    content_text = forms.CharField()


class GetCommentForm(forms.Form):
    content_id = forms.IntegerField(required=False)
    page_size = forms.IntegerField(required=False)
    page_no = forms.IntegerField(required=False)